index.js
zzmq.dev@gmail.com[dev3]/mathkit[add-clamp-n-lo-hi-function-clamps-number] / index.js
@ cd59ab0d
Download
Ladder Summary
- file Add clamp function with proper handling of non‑numeric inputs and corresponding tests
export function sum(...numbers) {
return numbers.reduce((total, n) => total + n, 0);
}
export { isOdd } from "./src/isOdd.js";
export { isEven } from "./src/isEven.js";
export { min } from "./src/min.js";
export { isPrime } from "./src/isPrime.js";
export { factorial } from "./src/factorial.js";
export { clamp } from "./src/clamp.js";